﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public partial class Department
    {
        public static IQueryable<Department> GetAll(DAL.DataAccessLayer dal)
        {
            DataAccessDataContext dc = dal.DataContext;
            
            return from d in dc.Departments
                       select d;
        }
    }
}
